package com.tbit.uqbike.service.business.impl;

import com.tbit.uqbike.object.pojo.MachineStatusFlag;
import com.tbit.uqbike.service.business.NoProfitMachineService;
import com.tbit.uqbike.webmanager.dao.core.NoProfitMachineDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ：hzw
 * @date ：Created in 2021/9/6 13:44
 * @description：无盈利车辆业务层
 * @modified By：
 * @version: $
 */
@Service(value = "/noProfitMachineService")
public class NoProfitMachineServiceImpl implements NoProfitMachineService {
    @Autowired
    private NoProfitMachineDao noProfitMachineDao;

    @Override
    public List<MachineStatusFlag> queryPage(Integer accountId, Integer count) {
        Map<String, Object> map = new HashMap<>();
        map.put("accountId", accountId);
        map.put("count", count);
        return noProfitMachineDao.queryPage(map);
    }
}
